# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=drm_info
pkgver=2.3.0
pkgrel=0
pkgdesc="Small utility to dump info about DRM devices"
url="https://github.com/ascent12/drm_info"
license="MIT"
arch="all"
options="!check" # no test suite
makedepends="meson libdrm-dev pciutils-dev json-c-dev"
source="https://github.com/ascent12/drm_info/archive/v$pkgver/drm_info-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
111b558f36f7fdcc17bd77be0f4965cc4b69ab63149ea326b16566156e3d619f47033bee8164d9d28dc540c0a453ef774249ec3d37587f42ebe6c97fcc7925d2  drm_info-2.3.0.tar.gz
"
